package eom.example.local.utils;

import java.util.List;

/**
 * @author X.I.O
 * @title: IPage
 * @projectName spring-boot-local
 * @description: TODO
 * @date 2021/11/9 19:36
 */
public class IPage<T> {

    private int total;

    private List<T> data;

    private int current;

    private int size;

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public Object getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public IPage(int total, List<T> data, int current, int size) {
        this.total = total;
        this.data = data;
        this.current = current;
        this.size = size;
    }

    public IPage() {
    }
}
